home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1994
/
MacHack 1994.toast
/
MacHack™ 1987-1994
/
MacHack™ '93
/
Papers '93
/
Macintosh as Internet Server ƒ
/
inetd
/
Libraries
/
MacTCPLib
/
Driver.h
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-03-16
|
338 b
|
23 lines
|
[
TEXT/MPS
]
#ifndef __DRIVER__
#define __DRIVER__
#ifndef __DEVICES__
#include <Devices.h>
#endif
class DriverRef {
public:
short fRef;
DriverRef() { OSErr theErr;
if ((theErr = OpenDriver("\p.ipp", &fRef)) != noErr)
fRef = 0;
};
short GetRef() { return fRef; }
} DriverRef;
static struct DriverRef gRef;
#endif